<?php /* Smarty version Smarty-3.1.6, created on 2017-05-16 12:23:32
         compiled from "D:/test.cn/Test/Admin/View\Test\exam.html" */ ?>
<?php /*%%SmartyHeaderCode:2951758f22eda873ae1-02680507%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '92c75567024b917f07903786709a7a2c56e74f9e' => 
    array (
      0 => 'D:/test.cn/Test/Admin/View\\Test\\exam.html',
      1 => 1494908609,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '2951758f22eda873ae1-02680507',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_58f22eda91467',
  'variables' => 
  array (
    'name' => 0,
    'qu' => 0,
    'q' => 0,
    'page' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_58f22eda91467')) {function content_58f22eda91467($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include 'D:\\test.cn\\ThinkPHP\\Library\\Vendor\\Smarty\\plugins\\modifier.date_format.php';
?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset=UTF-8">
<title><?php echo @TITLE;?>
 - <?php echo $_smarty_tpl->tpl_vars['name']->value['type_name'];?>
列表 </title>
<link href="<?php echo @Admin_URL;?>
css/public.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="<?php echo @Admin_URL;?>
js/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo @Admin_URL;?>
js/global.js"></script>
<script type="text/javascript" src="<?php echo @Admin_URL;?>
js/jquery.autotextarea.js"></script>
</head>
<?php echo $_smarty_tpl->getSubTemplate ("../Index/top.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

 <div id="dcMain">
   <!-- 当前位置 -->
<div id="urHere">题库首页<b>></b><strong><?php echo $_smarty_tpl->tpl_vars['name']->value['type_name'];?>
列表</strong> </div>   <div class="mainBox" style="height:auto!important;height:550px;min-height:550px;">
        <h3><a href="<?php echo @__CONTROLLER__;?>
/see" class="actionBtn">返回</a>
        <a href="<?php echo @__CONTROLLER__;?>
/entering" class="actionBtn add" style="margin-right:10px">添加试题</a><?php echo $_smarty_tpl->tpl_vars['name']->value['type_name'];?>
列表</h3>
        <div id="list">
    <form name="action" method="post" action="<?php echo @__SELF__;?>
">
    <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
     <tr>
      <th width="22" align="center"><input name='chkall' type='checkbox' id='chkall' onclick='selectcheckbox(this.form)' value='check'></th>
      <th width="40" align="center">编号</th>
      <th align="center">内容</th>
      <th align="center">答案</th>
      <th width="80" align="center">添加日期</th>
      <th width="80" align="center">操作</th>
     </tr>
     <?php  $_smarty_tpl->tpl_vars['q'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['q']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['qu']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['q']->iteration=0;
foreach ($_from as $_smarty_tpl->tpl_vars['q']->key => $_smarty_tpl->tpl_vars['q']->value){
$_smarty_tpl->tpl_vars['q']->_loop = true;
 $_smarty_tpl->tpl_vars['q']->iteration++;
?>
          <tr>
      <td align="center"><input type="checkbox" name="checkbox[]" value="<?php echo $_smarty_tpl->tpl_vars['q']->value['id'];?>
" /></td>
      <td align="center"><?php echo $_smarty_tpl->tpl_vars['q']->iteration;?>
</td>
      <td align="center"><?php echo $_smarty_tpl->getSubTemplate ($_smarty_tpl->tpl_vars['q']->value['content'], $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
</td>
      <td align="center"><?php echo $_smarty_tpl->getSubTemplate ($_smarty_tpl->tpl_vars['q']->value['answer'], $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
</td>
      <td align="center"><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['q']->value['add_time'],"%Y.%m.%d");?>
</td>
      <td align="center">
              <a href="<?php echo @__CONTROLLER__;?>
/upd/id/<?php echo $_smarty_tpl->tpl_vars['q']->value['id'];?>
/type/<?php echo $_smarty_tpl->tpl_vars['q']->value['value'];?>
/type_name/<?php echo $_smarty_tpl->tpl_vars['q']->value['type_name'];?>
">编辑</a> | 
              <a href="<?php echo @__CONTROLLER__;?>
/del/id/<?php echo $_smarty_tpl->tpl_vars['q']->value['id'];?>
">删除</a>
             </td>
     </tr>
     <?php } ?>
         </table>
    <div class="action">
     <select onchange="douAction()">
      <option>批量删除</option>
     </select>
     <input class="btn" type="submit" value="提交" />
    </div>
    </form>
    </div>
    <div class="clear"></div>
    <div class="pager"><?php echo $_smarty_tpl->tpl_vars['page']->value;?>
</div>
 </div>
 <div class="clear"></div>
<div id="dcFooter">
 <div id="footer">
  <div class="line"></div>
  <ul>
   《C语言程序设计》在线考试系统，版权所有
  </ul>
 </div>
</div><!-- dcFooter 结束 -->
<div class="clear"></div> </div>

 <script type="text/javascript">
 
 onload = function()
 {
   document.forms['action'].reset();
 }

 function douAction()
 {
     var frm = document.forms['action'];

     frm.elements['new_cat_id'].style.display = frm.elements['action'].value == 'category_move' ? '' : 'none';
 }
 
 </script>
 
</body>
</html><?php }} ?>